using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JGLib.States;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace TrafficTrouble.States
{
    public class LevelCompletedState : State
    {
        private const float GRAY_OVER = .7f;

        private Texture2D screenTex;

        public LevelCompletedState()
            : base(typeof(LevelCompletedState))
        {
            screenTex = null;
        }

        protected override void GetSwitchedTo(object prevStateID, object[] data)
        {
            if ((Type)prevStateID == typeof(GameState))
                screenTex = (Texture2D)data[0];
        }

        protected override void Draw(SpriteBatch g)
        {
            g.Draw(screenTex, Vector2.Zero, Color.White * GRAY_OVER);

            // draw menu for selecting:
            // - Redo level
            // - Next level
            // - Level selection
        }
    }
}
